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

dynamic versioning, reformat pyproject.toml, switch pytest.ini to pyproject.toml #519

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,9 @@
# **Upcoming release**

## Improvement

- #492, Feat: Global configuration support
- #519, dynamic versioning and move pytest to pyproject.toml

# Release 1.4.0

Expand Down
27 changes: 10 additions & 17 deletions pyproject.toml
Expand Up @@ -20,7 +20,7 @@ classifiers = [
'Programming Language :: Python :: 3.10',
'Topic :: Software Development',
]
version = '1.4.0'
dynamic = ["version"]
dependencies = ['pytoolconfig[global] >= 1.2.2']

[[project.authors]]
Expand All @@ -44,11 +44,7 @@ doc = [
"sphinx-autodoc-typehints>=1.18.1",
"sphinx-rtd-theme>=1.0.0",
]
dev = [
'pytest>=7.0.1',
'pytest-timeout>=2.1.0',
'build>=0.7.0',
]
dev = ['pytest>=7.0.1', 'pytest-timeout>=2.1.0', 'build>=0.7.0']
[tool.setuptools]
packages = [
'rope',
Expand All @@ -63,20 +59,17 @@ packages = [
'rope.refactor',
'rope.refactor.importutils',
]

[tool.setuptools_scm]
[tool.black]
target-version = [
'py36',
'py37',
'py38',
'py39',
]
target-version = ['py36', 'py37', 'py38', 'py39']
include = 'rope/.*\.pyi?$'
force-exclude = 'ropetest|rope/base/prefs.py'

[tool.pytest.ini_options]

python_files = ["*test.py", "__init__.py"]
markers = ["time_limit: sets a maximum amount of time the test can run"]

[build-system]
requires = [
'setuptools',
'setuptools-scm',
]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = 'setuptools.build_meta'
7 changes: 0 additions & 7 deletions pytest.ini

This file was deleted.