From 5d24f2e934b1096342795688ad7604f59ce322c7 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sat, 17 Apr 2021 15:37:04 +0200 Subject: [PATCH] Use poetry and replace setup.py by pyproject.toml --- MANIFEST.in | 2 -- pyproject.toml | 34 ++++++++++++++++++++++++++++++++++ setup.py | 33 --------------------------------- 3 files changed, 34 insertions(+), 35 deletions(-) delete mode 100644 MANIFEST.in create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index b8ab295..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,2 +0,0 @@ -include LICENCE -recursive-include django_any_js/templates * diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2e6adda --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[tool.poetry] +name = "django-any-js" +version = "1.0.4" +description = "Include JavaScript/CSS libraries with readable template tags" +authors = ["Dominik George <dominik.george@teckids.org>"] +maintainers = ["Dominik George <dominik.george@teckids.org>", "Jonathan Weth <dev@jonathanweth.de>"] +license = "Apache-2.0" +repository = "https://edugit.org/AlekSIS/libs/django-any-js" +include = ["CHANGELOG.rst", "LICENCE"] +readme = "README.rst" +classifiers = [ + "Environment :: Web Environment", + "Framework :: Django", + "Framework :: Django :: 2.2", + "Framework :: Django :: 3.0", + "Framework :: Django :: 3.1", + "Framework :: Django :: 3.2", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", +] + +[tool.poetry.dependencies] +python = "^3.7" +Django = ">=2.2, <4.0" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/setup.py b/setup.py deleted file mode 100644 index 5e6c274..0000000 --- a/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -import os -from setuptools import setup - -MYDIR = os.path.dirname(__file__) - -setup( - name='django-any-js', - version='1.0.3.post1', - keywords=['django', 'javascript'], - description='Include JavaScript libraries with readable template tags', - long_description=open(os.path.join(MYDIR, "README.rst"), - "r", encoding="utf-8").read(), - url='https://edugit.org/AlekSIS/libs/django-any-js', - author='Dominik George', - author_email='dominik.george@teckids.org', - packages=['django_any_js', 'django_any_js.templatetags'], - include_package_data=True, - install_requires=['Django>=1.11'], - classifiers=[ - 'Environment :: Web Environment', - 'Framework :: Django', - 'Framework :: Django :: 1.11', - 'Framework :: Django :: 2.0', - 'Framework :: Django :: 2.1', - 'Framework :: Django :: 2.2', - 'License :: OSI Approved :: Apache Software License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Topic :: Internet :: WWW/HTTP', - 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', - ], -) -- GitLab