Skip to content

Commit

Permalink
Removed meta data files from setup.py
Browse files Browse the repository at this point in the history
We removed the license, readme and requirements.txt from setup.py as
they are not really necessary, and only clutter the distribution.

Fixes #254.
  • Loading branch information
mristin committed Sep 15, 2023
1 parent 23359ee commit 5dd7685
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
asttokens>=2,<3
typing_extensions
sphinx>=5,<6
sphinx-autodoc-typehints>=1.11.1
sphinx-rtd-theme>=1,<2
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
with open(os.path.join(here, "README.rst"), encoding="utf-8") as fid:
long_description = fid.read() # pylint: disable=invalid-name

with open(os.path.join(here, "requirements.txt"), encoding="utf-8") as fid:
install_requires = [line for line in fid.read().splitlines() if line.strip()]

# Please keep the meta information in sync with icontract/__init__.py.
#
# (mristin, 2020-10-09) We had to denormalize icontract_meta module (which
Expand Down Expand Up @@ -48,7 +45,10 @@
license="License :: OSI Approved :: MIT License",
keywords="design-by-contract precondition postcondition validation",
packages=find_packages(exclude=["tests*"]),
install_requires=install_requires,
install_requires=[
"asttokens>=2,<3",
"typing_extensions",
],
extras_require={
"dev": [
"pylint==2.17.5",
Expand All @@ -71,5 +71,4 @@
},
py_modules=["icontract"],
package_data={"icontract": ["py.typed"]},
data_files=[(".", ["LICENSE.txt", "README.rst", "requirements.txt"])],
)

0 comments on commit 5dd7685

Please sign in to comment.