Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package gidgethub using flit. #64

Merged
merged 19 commits into from
Aug 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: python
cache: pip
python:
- "3.6"
- "3.6-dev"
- "3.7-dev"
- "nightly"
Expand All @@ -12,12 +11,16 @@ matrix:
python: "nightly"

before_install:
- pip install -U ".[dev]"
- pip install -U pytest-cov sphinx mypy
- pip install -U pip flit

install:
- flit install --deps develop

script:
- pytest --cov=gidgethub
- mypy --ignore-missing-imports --strict gidgethub/*.py
- sphinx-build -nW -q -b html -b linkcheck -d docs/_build/doctrees docs docs/_build/html

after_success:
- bash <(curl -s https://codecov.io/bash)

Expand Down
7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Gidgethub is `available on PyPI <https://pypi.org/project/gidgethub/>`_.
python3 -m pip install gidgethub


Gidgethub requires Python version 3.6 and up.


Goals
-----

Expand Down Expand Up @@ -71,6 +74,8 @@ Changelog
``gidgethub.abc.GitHubAPI.put``, and ``gidgethub.abc.GitHubAPI.delete`` now
accept``jwt`` and ``oauth_token`` arguments.

- gidgethub is now packaged using `flit <https://flit.readthedocs.io/en/latest/>`_.

2.5.0
'''''

Expand Down Expand Up @@ -166,4 +171,4 @@ Changelog
1.0.0
'''''

Initial release
Initial release.
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[build-system]
requires = ["flit"]
build-backend = "flit.buildapi"

[tool.flit.metadata]
module = "gidgethub"
author = "Brett Cannon"
author-email = "[email protected]"
home-page = "https://github.com/brettcannon/gidgethub"
requires = ["uritemplate>=3.0.0"]
requires-python = ">=3.6"
license = "Apache"
keywords = "github sans-io async"
description-file = "README.rst"
classifiers = ["Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
]

[tool.flit.metadata.requires-extra]
test = ["pytest>=3.0.0", "pytest-asyncio"]
doc = ["sphinx"]
# The 'dev' target should contain all dependencies listed in any extras coming
# after it to make sure that the test suite will run successfully.
dev = ["aiohttp", "mypy", "pytest-cov", "treq", "twisted[tls]", "tornado"]
aiohttp = ["aiohttp"]
treq = ["treq", "twisted[tls]"]
tornado = ["tornado"]

[tool.flit.metadata.urls]
Documentation = "https://gidgethub.readthedocs.io"
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

46 changes: 0 additions & 46 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,46 +0,0 @@
import pathlib

import setuptools


docs_requires = ["sphinx"]
tests_requires = ['pytest>=3.0.0', 'pytest-asyncio']
aiohttp_requires = ["aiohttp"]
treq_requires = ["treq", "twisted[tls]"]
tornado_requires = ["tornado"]

long_description = pathlib.Path("README.rst").read_text("utf-8")

setuptools.setup(
name="gidgethub",
version="3.0.0.dev0",
description="An async GitHub API library",
long_description=long_description,
url="https://gidgethub.readthedocs.io",
author="Brett Cannon",
author_email="[email protected]",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io async",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_requires,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"docs": docs_requires,
"tests": tests_requires,
"aiohttp": aiohttp_requires,
"treq": treq_requires,
"tornado": tornado_requires,
"dev": (docs_requires + tests_requires + aiohttp_requires
+ treq_requires + tornado_requires),
},
)