Skip to content

Commit

Permalink
Merge pull request #297 from DerwenAI/release/fix-0.6.2
Browse files Browse the repository at this point in the history
reduce size of source distributions
  • Loading branch information
ceteri committed Nov 24, 2022
2 parents 80723b4 + 06ef8b0 commit 1206ffa
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
17 changes: 2 additions & 15 deletions MANIFEST.in
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
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
@@ -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
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
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

0 comments on commit 1206ffa

Please sign in to comment.