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

reduce size of source distributions #297

Merged
merged 1 commit into from
Nov 24, 2022
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
17 changes: 2 additions & 15 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,8 @@ include CITATION
include LICENSE
include Makefile
include changelog.txt
include dat/*.csv
include dat/*.db
include dat/*.ipynb
include dat/*.json
include dat/*.jsonld
include dat/*.parquet
include dat/*.ttl
include dat/*.yml
include dat/food_com/*.csv
include dat/psl/*.json
include dat/psl/*.txt
include dat/titanic/*.csv
include docker-compose.yml
include environment.yml
include examples/*.ipynb
include examples/graph_algebra/*.ipynb
include kglab/*.py
include kglab/query/*.py
include pylintrc
Expand All @@ -28,14 +14,15 @@ include requirements-tut.txt
include requirements.txt
include sample.py
include setup.py
prune dat
prune bin
prune docker
prune docs
prune scripts
prune tests
prune wip
prune .ipynb_checkpoints
prune examples/.ipynb_checkpoints
prune examples
exclude codecov.yml
exclude lgtm.yml
exclude meta.yaml
Expand Down
4 changes: 2 additions & 2 deletions bin/push_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
## debugging the uploaded README:
# pandoc README.md --from markdown --to rst -s -o README.rst

rm -rf dist
python setup.py sdist bdist_wheel
rm -rf dist build kglab.egg-info
python setup.py sdist bdist_wheel -v
twine upload --verbose dist/*
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# `kglab` changelog

## 0.6.5
## 0.6.6

2022-11-23

* something is not quite right about source distributions... kudos to <https://stackoverflow.com/questions/608855/excluding-a-top-level-directory-from-a-setuptools-package>
* update `setuptools` to workaround potential vulnerabilities
* create `pyproject.toml` to support upcoming `pip` release
* remove tests and other unnecessary files from source distribution
Expand Down
2 changes: 1 addition & 1 deletion kglab/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


MIN_PY_VERSION: typing.Tuple = (3, 7,)
__version__: str = "0.6.5"
__version__: str = "0.6.6"


def _versify (
Expand Down
19 changes: 13 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,17 @@ def parse_requirements_file (
long_description_content_type = "text/markdown",

python_requires = ">=" + kglab_version._versify(kglab_version.MIN_PY_VERSION), # pylint: disable=W0212
packages = setuptools.find_packages(exclude=[ "docs", "examples" ]),
zip_safe = False,

packages = setuptools.find_packages(
exclude = [
"dat",
"docs",
"examples",
"scripts",
"tests",
]),

install_requires = base_packages,
extras_require = {
"base": base_packages,
Expand Down Expand Up @@ -114,12 +122,11 @@ def parse_requirements_file (
url = "https://derwen.ai/docs/kgl/",
project_urls = {
"DOI": "https://doi.org/10.5281/zenodo.6360664",
"Community Survey": "https://forms.gle/FMHgtmxHYWocprMn6",
"Discussion Forum": "https://www.linkedin.com/groups/6725785/",
"Discussions": "https://www.linkedin.com/groups/6725785/",
"DockerHub": "https://hub.docker.com/r/derwenai/kglab",
"Hands-on Tutorial": "https://derwen.ai/docs/kgl/tutorial/",
"Issue Tracker": "https://github.com/DerwenAI/kglab/issues",
"Source Code": "https://github.com/DerwenAI/kglab",
"Tutorial": "https://derwen.ai/docs/kgl/tutorial/",
"Issues": "https://github.com/DerwenAI/kglab/issues",
"Source": "https://github.com/DerwenAI/kglab",
},

entry_points = {
Expand Down