Skip to content

Commit

Permalink
Pypi package (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
vb64 authored Sep 10, 2021
1 parent 4ac046f commit 3fb078d
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ static/*
htmlcov/*
venv/*
venv.*
build/
dist/
*.egg-info/
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include django_admin_geomap/templates *
4 changes: 4 additions & 0 deletions deploy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
setuptools>=42
wheel
build
twine
10 changes: 10 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
21 changes: 21 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[metadata]
name = django_admin_geomap
version = 1.0
author = Vitaly Bogomolov
author_email = [email protected]
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

0 comments on commit 3fb078d

Please sign in to comment.