forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…a#12509) * Convert setup.py to pyproject.toml * Switch from .version to __version__.py * Mark conda.auxlib.packaging for deprecation * Mark conda_check_versions_aligned for deprecation * Include link to docs in deprecation message * Create .git_archival --------- Co-authored-by: Jannis Leidel <[email protected]> Co-authored-by: Daniel Bast <[email protected]>
- Loading branch information
1 parent
435d7e4
commit 0a25579
Showing
15 changed files
with
137 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.psm1 text eol=lf | ||
dev/start text eol=lf | ||
*.bat text eol=crlf | ||
.git_archival.txt export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ MANIFEST | |
coverage.xml | ||
.tox/ | ||
junit.xml | ||
.version | ||
tmpfile.rc | ||
.DS_Store | ||
.coverage* | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
# Copyright (C) 2012 Anaconda, Inc | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
from .auxlib.packaging import get_version | ||
"""Placeholder for the actual version code injected by hatch-vcs. | ||
__version__ = get_version(__file__) | ||
The logic here is used during development installs only so keep it simple. Since conda | ||
abides by CEP-8, which outlines using CalVer, our development version is simply: | ||
YY.MM.MICRO.devN+gHASH[.dirty] | ||
""" | ||
try: | ||
from setuptools_scm import get_version | ||
|
||
__version__ = get_version(root="..", relative_to=__file__) | ||
except (ImportError, OSError): | ||
# ImportError: setuptools_scm isn't installed | ||
# OSError: git isn't installed | ||
__version__ = "0.0.0.dev0+placeholder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Enhancements | ||
|
||
* Switch from `setup.py` to `pyproject.toml` and use [Hatchling](https://pypi.org/project/hatchling/) for our build system. (#12509) | ||
|
||
### Bug fixes | ||
|
||
* <news item> | ||
|
||
### Deprecations | ||
|
||
* Mark `conda.auxlib.packaging` for deprecation in 24.3.0. (#12509) | ||
|
||
### Docs | ||
|
||
* <news item> | ||
|
||
### Other | ||
|
||
* <news item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,68 @@ | ||
[build-system] | ||
requires = [ | ||
"hatchling >=1.12.2", | ||
"hatch-vcs >=0.2.0", | ||
] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "conda" | ||
description = "OS-agnostic, system-level binary package manager." | ||
readme = "README.md" | ||
authors = [{name = "Anaconda, Inc.", email = "[email protected]"}] | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy" | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"conda-package-handling >=1.3.0", | ||
"menuinst >=1.4.11,<2 ; platform_system=='Windows'", | ||
"packaging", | ||
"pycosat >=0.6.3", | ||
"pyopenssl >=16.2.0", | ||
"requests >=2.18.4,<3", | ||
"ruamel.yaml >=0.11.14,<0.18", | ||
"setuptools >=31.0.1", | ||
"toolz >=0.8.1", | ||
"pluggy >=1.0.0", | ||
"tqdm >=4", | ||
"boltons >=23.0.0", | ||
"jsonpatch >=1.32", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
documentation = "https://docs.conda.io/projects/conda/en/stable/" | ||
repository = "https://github.com/conda/conda" | ||
changelog = "https://github.com/conda/conda/blob/main/CHANGELOG.md" | ||
|
||
[project.scripts] | ||
conda = "conda.cli.main_pip:main" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.version.raw-options] | ||
version_scheme = "calver-by-date" | ||
local_scheme = "dirty-tag" | ||
|
||
[tool.hatch.build] | ||
include = ["conda", "conda_env"] | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "conda/__version__.py" | ||
|
||
[tool.black] | ||
target-version = ['py38', 'py39', 'py310'] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters