mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
# Problem # The `.whl` available on PyPi for this repository contains its entire `tests` submodule. The total size of the `pygithub` module is less than `1mb` without tests and `>23mb` with. Previous discussions on this topic indicated the removal of tests would be accepted if someone created a pull request to do so: https://github.com/PyGithub/PyGithub/issues/672 This is that pull request! 😄 # Solution/Implementation # - Moved "tests" to root of the repository ( outside the package ) - Added `tests.` module path to the imports in `AllTests.py` - Updated `setup.py` - Removed `package_data` from product - Removed "tests" from packages definition - Repointed `test_suite` to new location - Updated `travis.yml` - Added conditional ( if not `py2.7` ) conversion of code to `py3` _... apologies for all the failed build spam below - new to working with Travis CI / had some gotcha moments!_
11 lines
2.7 KiB
Plaintext
11 lines
2.7 KiB
Plaintext
https
|
|
GET
|
|
api.github.com
|
|
None
|
|
/orgs/BeaverSoftware
|
|
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
None
|
|
200
|
|
[('content-length', '1337'), ('x-runtime-rack', '0.067917'), ('vary', 'Accept, Authorization, Cookie, X-GitHub-OTP'), ('x-oauth-scopes', 'admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion'), ('x-xss-protection', '1; mode=block'), ('x-content-type-options', 'nosniff'), ('x-accepted-oauth-scopes', 'admin:org, read:org, repo, user, write:org'), ('etag', '"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"'), ('cache-control', 'private, max-age=60, s-maxage=60'), ('referrer-policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('status', '200 OK'), ('x-ratelimit-remaining', '4998'), ('x-github-media-type', 'github.v3; format=json'), ('access-control-expose-headers', 'ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval'), ('last-modified', 'Tue, 24 Oct 2017 12:11:24 GMT'), ('date', 'Fri, 06 Apr 2018 12:54:55 GMT'), ('access-control-allow-origin', '*'), ('content-security-policy', "default-src 'none'"), ('strict-transport-security', 'max-age=31536000; includeSubdomains; preload'), ('server', 'GitHub.com'), ('x-ratelimit-limit', '5000'), ('x-frame-options', 'deny'), ('content-type', 'application/json; charset=utf-8'), ('x-ratelimit-reset', '1523022613')]
|
|
{"login":"BeaverSoftware","id":1,"url":"https://api.github.com/orgs/BeaverSoftware", "repos_url":"https://api.github.com/orgs/BeaverSoftware/repos","events_url":"https://api.github .com/orgs/BeaverSoftware/events","hooks_url":"https://api.github.com/orgs/BeaverSoftware/hooks", "issues_url":"https://api.github.com/orgs/BeaverSoftware/issues","members_url":"https://api.github .com/orgs/BeaverSoftware/members{/member}","public_members_url":"https://api.github.com/orgs/BeaverSoftware/public_members{/member}","avatar_url":"https://avatars1.githubusercontent.com/u/1?v=4","description":"BeaverSoftware writes software.","name":"BeaverSoftware","company":null,"blog":"http://www.example.com","location":"Paris, France","email":"","has_organization_projects":true,"has_repository_projects":true,"public_repos":27,"public_gists":0,"followers":0,"following":0,"html_url":"https://github.com/BeaverSoftware","created_at":"2014-01-09T16:56:17Z","updated_at":"2017-10-24T12:11:24Z","type":"Organization","total_private_repos":7,"owned_private_repos":0,"private_gists":0,"disk_usage":2,"collaborators":9,"billing_email":"foo@example.com","plan":{"name":"free","space":1,"private_repos":3,"filled_seats":3,"seats":0},"default_repository_permission":"none","members_can_create_repositories":false}
|