Skip to content

Commit

Permalink
Refine PyPI packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
keitheis committed Aug 9, 2021
1 parent 7b81116 commit fad687b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
3 changes: 0 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
(Unrelease)
===================

1.2.0 (2021-08-09)
==================

Expand Down
5 changes: 5 additions & 0 deletions HOW_TO_BUILD.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python3 -m build
python3 -m twine check dist/*
python3 -m twine upload --repository testpypi dist/*
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include CHANGES.rst
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
]
build-backend = "setuptools.build_meta"
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[metadata]
description-file = README.rst


[bdist_wheel]
universal=1

Expand Down
14 changes: 4 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import os

from setuptools import setup

here = os.path.abspath(os.path.dirname(__file__))
try:
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.rst')) as f:
CHANGES = f.read()
except IOError:
README = CHANGES = ''
with open("README.rst", "r", encoding="utf-8") as f:
README = f.read()
with open("CHANGES.rst", "r", encoding="utf-8") as f:
CHANGES = f.read()

testing_extras = [
'pytest-cov',
Expand Down

0 comments on commit fad687b

Please sign in to comment.