Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMP: transition to pyproject.toml #24

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
shell: bash -l {0}
run: |
cd q2-hello-world
make install
python -m pip install -v .

- name: Call --help on plugin
shell: bash -l {0}
Expand Down
2 changes: 0 additions & 2 deletions {{ cookiecutter.package_name }}/MANIFEST.in

This file was deleted.

34 changes: 34 additions & 0 deletions {{ cookiecutter.package_name }}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build-system]
requires = [
'setuptools>=64',
'versioneer[toml]==0.29',
'wheel'
]
build-backend = 'setuptools.build_meta'

[project]
name = '{{ cookiecutter.package_name }}'
description = 'A template QIIME 2 plugin.'
authors = [
{name = '{{ cookiecutter.author_name }}', email = '{{ cookiecutter.author_email }}'}
]
readme = 'README.md'
license = {file = 'LICENSE'}
dynamic = ['version']

[project.urls]
Repository = '{{ cookiecutter.project_url }}'

[project.entry-points.'qiime2.plugins']
{{ cookiecutter.package_name }} = '{{ cookiecutter.module_name }}.plugin_setup:plugin'

[tool.setuptools.packages.find]
include = ['{{ cookiecutter.package_name }}*']

[tool.versioneer]
VCS = 'git'
style = 'pep440'
versionfile_source = '{{ cookiecutter.module_name }}/_version.py'
versionfile_build = '{{ cookiecutter.module_name }}/_version.py'
tag_prefix = ''
parentdir_prefix = '{{ cookiecutter.package_name }}-'
11 changes: 0 additions & 11 deletions {{ cookiecutter.package_name }}/setup.cfg

This file was deleted.

23 changes: 1 addition & 22 deletions {{ cookiecutter.package_name }}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,10 @@
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------

from setuptools import find_packages, setup
from setuptools import setup

import versioneer

description = ("A template QIIME 2 plugin.")

setup(
name="{{ cookiecutter.package_name }}",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
license="BSD-3-Clause",
packages=find_packages(),
author="{{ cookiecutter.author_name }}",
author_email="{{ cookiecutter.author_email }}",
description=description,
url="{{ cookiecutter.project_url }}",
entry_points={
"qiime2.plugins": [
"{{ cookiecutter.module_name }}="
"{{ cookiecutter.module_name }}"
".plugin_setup:plugin"]
},
package_data={
"{{ cookiecutter.module_name }}": ["citations.bib"],
"{{ cookiecutter.module_name }}.tests": ["data/*"],
},
zip_safe=False,
)
Loading
Loading