Skip to content

Commit

Permalink
Metadata and tools for PyPI distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Sep 9, 2017
1 parent b5f60c5 commit c8c8ed7
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -2,6 +2,8 @@
/.python-version
/.tox
/*.egg-info
/build
/dist

__pycache__
*.pyc
Expand Down
1 change: 1 addition & 0 deletions MANIFET.in
@@ -0,0 +1 @@
include README.rst LICENSE
13 changes: 12 additions & 1 deletion Makefile
@@ -1,6 +1,6 @@
ALL: help

.PHONY: help docs test tox watch
.PHONY: help build check clean docs lint test tox upload watch

help:
@echo 'Available commands:'
Expand All @@ -12,9 +12,17 @@ help:
@echo ' tox - Run tests for all platforms with Tox'
@echo ' watch - Start Sphinx autobuild watcher'

build: clean
pipenv run python setup.py sdist bdist_wheel

check:
pipenv run python setup.py check --restructuredtext --strict

clean:
rm -rf build dist *.egg-info
find . -name \*.pyc -delete
find . -name __pycache__ -exec rm -r {} +

docs:
make -C docs html

Expand All @@ -27,6 +35,9 @@ test: lint
tox:
tox

upload: build
pipenv run twine upload dist/*

# This requires sphinx-autobuild. It is not listed in the Pipfile because
# PyPy3 does not like it and causes CI to fail. :(
watch:
Expand Down
5 changes: 3 additions & 2 deletions Pipfile
Expand Up @@ -7,8 +7,9 @@ pytest = "*"
pytest-cov = "*"
pytest-pythonpath = "*"
flake8 = "*"
Sphinx = "*"
sphinx_rtd_theme = "*"
sphinx = "*"
sphinx-rtd-theme = "*"
twine = "*"

[packages]
six = "*"
30 changes: 29 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions setup.cfg
@@ -1,3 +1,9 @@
[bdist_wheel]
universal = 1

[flake8]
exclude = .*, *.egg-info, __pycache__, docs

[tool:pytest]
addopts = --cov-config .coveragerc
python_paths = .
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -36,12 +36,14 @@ def get_version():
packages=find_packages(),
install_requires=['six'],
license='ISC',
keywords=['SQL'],
keywords='SQL',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Programming Language :: SQL',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
Expand Down

0 comments on commit c8c8ed7

Please sign in to comment.