diff --git a/{{cookiecutter.hyphenated}}/pyproject.toml b/{{cookiecutter.hyphenated}}/pyproject.toml new file mode 100644 index 0000000..13d165e --- /dev/null +++ b/{{cookiecutter.hyphenated}}/pyproject.toml @@ -0,0 +1,24 @@ +[project] +name = "{{ cookiecutter.hyphenated }}" +version = "0.1" +description = "{{ cookiecutter.description or "" }}" +readme = "README.md" +requires-python = ">=3.8" +authors = [{name = "{{ cookiecutter.author_name }}"}] +license = {text = "Apache-2.0"} +classifiers = [ + "License :: OSI Approved :: Apache Software License" +] +dependencies = [ + +] +{% if cookiecutter.github_username %} +[project.urls] +Homepage = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}" +Changelog = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}/releases" +Issues = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}/issues" +CI = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}/actions" +{% endif %} + +[project.optional-dependencies] +test = ["pytest"] diff --git a/{{cookiecutter.hyphenated}}/setup.py b/{{cookiecutter.hyphenated}}/setup.py deleted file mode 100644 index 6d030bb..0000000 --- a/{{cookiecutter.hyphenated}}/setup.py +++ /dev/null @@ -1,33 +0,0 @@ -from setuptools import setup -import os - -VERSION = "0.1" - - -def get_long_description(): - with open( - os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"), - encoding="utf8", - ) as fp: - return fp.read() - - -setup( - name="{{ cookiecutter.hyphenated }}", - description="{{ cookiecutter.description }}", - long_description=get_long_description(), - long_description_content_type="text/markdown",{% if cookiecutter.author_name %} - author="{{ cookiecutter.author_name }}",{% endif %}{% if cookiecutter.github_username %} - url="https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}", - project_urls={ - "Issues": "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}/issues", - "CI": "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}/actions", - "Changelog": "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.hyphenated }}/releases", - },{% endif %} - license="Apache License, Version 2.0", - version=VERSION, - packages=["{{ cookiecutter.underscored }}"], - install_requires=[], - extras_require={"test": ["pytest"]}, - python_requires=">=3.7", -)