-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to pyproject.toml with hatchling build system
- Loading branch information
1 parent
5bfa9ba
commit 01022c6
Showing
7 changed files
with
123 additions
and
57 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
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,49 @@ | ||
%global project aiven-db-migrate | ||
|
||
Name: %{project} | ||
Version: %{major_version} | ||
Release: %{release_number}%{?dist} | ||
Url: https://github.com/aiven/%{project} | ||
Source0: %{source_dist} | ||
Summary: Aiven database migration tool | ||
License: ASL 2.0 | ||
BuildArch: noarch | ||
BuildRequires: python3-devel | ||
BuildRequires: python3dist(wheel) | ||
BuildRequires: python3dist(hatch-vcs) | ||
BuildRequires: python3dist(packaging) | ||
BuildRequires: python3dist(psycopg2) | ||
|
||
%description | ||
Aiven is a next-generation managed cloud services. Its focus is in ease of | ||
adoption, high fault resilience, customer's peace of mind and advanced | ||
features at competitive price points. | ||
|
||
Aiven database migration tool. This tool is meant for easy migration of databases from some database service | ||
provider, such AWS RDS, or on premises data center, to [Aiven Database as a Service](https://aiven.io/). | ||
However, it's not limited for Aiven services and it might be useful as a generic database migration tool. | ||
|
||
%prep | ||
%autosetup -n aiven_db_migrate-%{version} | ||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires | ||
|
||
%build | ||
%pyproject_wheel | ||
|
||
%install | ||
%pyproject_install | ||
%pyproject_save_files aiven_db_migrate | ||
|
||
%check | ||
%pyproject_check_import | ||
|
||
%files -n %{name} -f %{pyproject_files} | ||
%license LICENSE | ||
%doc README.md | ||
%{_bindir}/pg_migrate | ||
|
||
%changelog | ||
* Wed Dec 08 2024 Aiven Support <[email protected]> | ||
- Initial |
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,49 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "aiven-db-migrate" | ||
dynamic = ["version"] | ||
description = "Aiven database migration tool" | ||
readme = "README.md" | ||
license = { text = "Apache License 2.0" } | ||
requires-python = ">=3.9" | ||
authors = [{ name = "Aiven", email = "[email protected]" }] | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
dependencies = ["psycopg2==2.9.6"] | ||
[project.optional-dependencies] | ||
dev = [ | ||
"flake8==6.0.0", | ||
"hatch==1.9.3", | ||
"isort==5.12.0", | ||
"mypy==1.3.0", | ||
"pylint==2.17.4", | ||
"pytest==7.3.1", | ||
"yapf==0.33.0", | ||
] | ||
|
||
[project.scripts] | ||
pg_migrate = "aiven_db_migrate.migrate.pgmigrate:main" | ||
|
||
[project.urls] | ||
Homepage = "https://aiven.io/" | ||
Issues = "https://github.com/aiven/aiven-db-migrate/issues" | ||
Documentation = "https://aiven.io/docs/products/postgresql/howto/run-aiven-db-migrate-python" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "aiven_db_migrate/migrate/version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = ["/aiven_db_migrate"] |
This file was deleted.
Oops, something went wrong.