From 3fb078d231517f368158ff4fd2c63c11092af979 Mon Sep 17 00:00:00 2001 From: Vitaly Bogomolov Date: Fri, 10 Sep 2021 13:10:38 +0400 Subject: [PATCH] Pypi package (#2) --- .gitignore | 3 +++ MANIFEST.in | 1 + deploy.txt | 4 ++++ makefile | 10 ++++++++++ pyproject.toml | 6 ++++++ setup.cfg | 21 +++++++++++++++++++++ 6 files changed, 45 insertions(+) create mode 100644 MANIFEST.in create mode 100644 deploy.txt create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index 52c5dd4..37113a1 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ static/* htmlcov/* venv/* venv.* +build/ +dist/ +*.egg-info/ diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..10f66fd --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include django_admin_geomap/templates * \ No newline at end of file diff --git a/deploy.txt b/deploy.txt new file mode 100644 index 0000000..d397be6 --- /dev/null +++ b/deploy.txt @@ -0,0 +1,4 @@ +setuptools>=42 +wheel +build +twine diff --git a/makefile b/makefile index 5ccd319..c6e4938 100644 --- a/makefile +++ b/makefile @@ -50,11 +50,21 @@ db: static: $(MANAGE) collectstatic --noinput $(SETTINGS) +package: + $(PYTHON) -m build -n + +pypitest: package + $(PYTHON) -m twine upload --repository testpypi dist/* + +pypi: package + $(PYTHON) -m twine upload dist/* + setup: setup_python setup_pip setup_pip: $(PIP) --upgrade pip $(PIP) -r $(TESTS)/requirements.txt + $(PYTHON) -m pip install -r deploy.txt setup_python: $(PYTHON_BIN) -m venv ./venv diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..374b58c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..971cfb3 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,21 @@ +[metadata] +name = django_admin_geomap +version = 1.0 +author = Vitaly Bogomolov +author_email = mail@vitaly-bogomolov.ru +description = Displaying objects at the maps in the Django administration site. +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/vb64/django.admin.geomap +project_urls = + Bug Tracker = https://github.com/vb64/django.admin.geomap/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[options] +package_dir = +packages = django_admin_geomap +python_requires = >=3.6 +include_package_data=True