Skip to content

Commit 1206ffa

Browse files
authored
Merge pull request #297 from DerwenAI/release/fix-0.6.2
reduce size of source distributions
2 parents 80723b4 + 06ef8b0 commit 1206ffa

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed

MANIFEST.in

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,8 @@ include CITATION
44
include LICENSE
55
include Makefile
66
include changelog.txt
7-
include dat/*.csv
8-
include dat/*.db
9-
include dat/*.ipynb
10-
include dat/*.json
11-
include dat/*.jsonld
12-
include dat/*.parquet
13-
include dat/*.ttl
14-
include dat/*.yml
15-
include dat/food_com/*.csv
16-
include dat/psl/*.json
17-
include dat/psl/*.txt
18-
include dat/titanic/*.csv
197
include docker-compose.yml
208
include environment.yml
21-
include examples/*.ipynb
22-
include examples/graph_algebra/*.ipynb
239
include kglab/*.py
2410
include kglab/query/*.py
2511
include pylintrc
@@ -28,14 +14,15 @@ include requirements-tut.txt
2814
include requirements.txt
2915
include sample.py
3016
include setup.py
17+
prune dat
3118
prune bin
3219
prune docker
3320
prune docs
3421
prune scripts
3522
prune tests
3623
prune wip
3724
prune .ipynb_checkpoints
38-
prune examples/.ipynb_checkpoints
25+
prune examples
3926
exclude codecov.yml
4027
exclude lgtm.yml
4128
exclude meta.yaml

bin/push_pypi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
## debugging the uploaded README:
44
# pandoc README.md --from markdown --to rst -s -o README.rst
55

6-
rm -rf dist
7-
python setup.py sdist bdist_wheel
6+
rm -rf dist build kglab.egg-info
7+
python setup.py sdist bdist_wheel -v
88
twine upload --verbose dist/*

changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# `kglab` changelog
22

3-
## 0.6.5
3+
## 0.6.6
44

55
2022-11-23
66

7+
* something is not quite right about source distributions... kudos to <https://stackoverflow.com/questions/608855/excluding-a-top-level-directory-from-a-setuptools-package>
78
* update `setuptools` to workaround potential vulnerabilities
89
* create `pyproject.toml` to support upcoming `pip` release
910
* remove tests and other unnecessary files from source distribution

kglab/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
MIN_PY_VERSION: typing.Tuple = (3, 7,)
14-
__version__: str = "0.6.5"
14+
__version__: str = "0.6.6"
1515

1616

1717
def _versify (

setup.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,17 @@ def parse_requirements_file (
7676
long_description_content_type = "text/markdown",
7777

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

81+
packages = setuptools.find_packages(
82+
exclude = [
83+
"dat",
84+
"docs",
85+
"examples",
86+
"scripts",
87+
"tests",
88+
]),
89+
8290
install_requires = base_packages,
8391
extras_require = {
8492
"base": base_packages,
@@ -114,12 +122,11 @@ def parse_requirements_file (
114122
url = "https://derwen.ai/docs/kgl/",
115123
project_urls = {
116124
"DOI": "https://doi.org/10.5281/zenodo.6360664",
117-
"Community Survey": "https://forms.gle/FMHgtmxHYWocprMn6",
118-
"Discussion Forum": "https://www.linkedin.com/groups/6725785/",
125+
"Discussions": "https://www.linkedin.com/groups/6725785/",
119126
"DockerHub": "https://hub.docker.com/r/derwenai/kglab",
120-
"Hands-on Tutorial": "https://derwen.ai/docs/kgl/tutorial/",
121-
"Issue Tracker": "https://github.com/DerwenAI/kglab/issues",
122-
"Source Code": "https://github.com/DerwenAI/kglab",
127+
"Tutorial": "https://derwen.ai/docs/kgl/tutorial/",
128+
"Issues": "https://github.com/DerwenAI/kglab/issues",
129+
"Source": "https://github.com/DerwenAI/kglab",
123130
},
124131

125132
entry_points = {

0 commit comments

Comments
 (0)