summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-encapsia-api.spec381
-rw-r--r--sources1
3 files changed, 383 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8826eaa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/encapsia_api-0.4.0.tar.gz
diff --git a/python-encapsia-api.spec b/python-encapsia-api.spec
new file mode 100644
index 0000000..2454cc8
--- /dev/null
+++ b/python-encapsia-api.spec
@@ -0,0 +1,381 @@
+%global _empty_manifest_terminate_build 0
+Name: python-encapsia-api
+Version: 0.4.0
+Release: 1
+Summary: Client API for talking to an Encapsia system.
+License: MIT
+URL: https://github.com/Encapsia/encapsia-api
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c6/3e/e642bb5253a83b1decdd9eac0d1869bd5570d7db440e22504d63ae5d7af8/encapsia_api-0.4.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests[security]
+Requires: python3-toml
+Requires: python3-arrow
+
+%description
+# Encapsia API Library
+
+![Workflows](https://github.com/encapsia/encapsia-api/actions/workflows/main.yml/badge.svg)
+![PyPI](https://img.shields.io/pypi/v/encapsia-api?style=flat)
+[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/encapsia-api)
+
+[![Known Vulnerabilities](https://snyk.io/test/github/encapsia/encapsia-api/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/encapsia/encapsia-api?targetFile=requirements.txt)
+
+
+REST API for working with [Encapsia](https://www.encapsia.com).
+
+## Installation
+
+ pip install encapsia-api
+
+
+## Contributing
+
+`encapsia-api` is a python package managed with [`poetry`](https://python-poetry.org/).
+You will need python 3.8 or newer. To get started, after checking out this repository,
+run:
+
+ poetry install
+
+
+### Code Style
+
+Code in this project should be auto-formatted using `black` and adhere to isort-like
+imports, and should pass linting and checks. You can run the following commands
+manually, or integrate the tooling in your dev environment, but see also the next
+section.
+
+ poetry run black .
+ poetry run ruff check .
+ poetry run mypy .
+
+Ruff can fix some of the issues it finds. For example, it can fix the style of importing
+modules, but it can do much more. This can be done with running:
+
+ poetry run ruff check --fix .
+
+However, please make sure you check the fixes it performs!
+
+
+### Revision Control
+
+The release branch for this project is `master` and feature branches should be merged
+into it via pull requests.
+
+This repository uses [`pre-commit`](https://pre-commit.com/) to run various checks with
+git pre-commit hooks. To get started, run:
+
+ pre-commit install
+
+After this, configured checks are run before you commit changes. You can also run them
+explicitly for all files:
+
+ pre-commit run -a
+
+
+### Versioning
+
+`encapsia-api` adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+To change the version, run:
+
+ poetry version <specifier> # e.g. patch
+
+or edit the version string in `pyproject.toml`. In any case, update the following file
+to match the new version: `encapsia_api/__init__.py`.
+
+Note that we are yet in `<1.0.0` land and thus version changes are not too strict and
+backward-incompatible changes may still occur before 1.0.0.
+
+
+### Building
+
+Manually build by running:
+
+ poetry build
+
+
+### Updating Dependencies
+
+This is achieved with:
+
+ poetry update
+ poetry lock
+ poetry export -f requirements.txt > requirements.txt
+
+### How to Run Tests
+
+Run:
+
+ poetry run pytest
+
+
+### Continuous Integration
+
+This project uses Github Actions to for linting, checking, and running the tests on
+commit to or pull requests targeting the main branch.
+
+
+%package -n python3-encapsia-api
+Summary: Client API for talking to an Encapsia system.
+Provides: python-encapsia-api
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-encapsia-api
+# Encapsia API Library
+
+![Workflows](https://github.com/encapsia/encapsia-api/actions/workflows/main.yml/badge.svg)
+![PyPI](https://img.shields.io/pypi/v/encapsia-api?style=flat)
+[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/encapsia-api)
+
+[![Known Vulnerabilities](https://snyk.io/test/github/encapsia/encapsia-api/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/encapsia/encapsia-api?targetFile=requirements.txt)
+
+
+REST API for working with [Encapsia](https://www.encapsia.com).
+
+## Installation
+
+ pip install encapsia-api
+
+
+## Contributing
+
+`encapsia-api` is a python package managed with [`poetry`](https://python-poetry.org/).
+You will need python 3.8 or newer. To get started, after checking out this repository,
+run:
+
+ poetry install
+
+
+### Code Style
+
+Code in this project should be auto-formatted using `black` and adhere to isort-like
+imports, and should pass linting and checks. You can run the following commands
+manually, or integrate the tooling in your dev environment, but see also the next
+section.
+
+ poetry run black .
+ poetry run ruff check .
+ poetry run mypy .
+
+Ruff can fix some of the issues it finds. For example, it can fix the style of importing
+modules, but it can do much more. This can be done with running:
+
+ poetry run ruff check --fix .
+
+However, please make sure you check the fixes it performs!
+
+
+### Revision Control
+
+The release branch for this project is `master` and feature branches should be merged
+into it via pull requests.
+
+This repository uses [`pre-commit`](https://pre-commit.com/) to run various checks with
+git pre-commit hooks. To get started, run:
+
+ pre-commit install
+
+After this, configured checks are run before you commit changes. You can also run them
+explicitly for all files:
+
+ pre-commit run -a
+
+
+### Versioning
+
+`encapsia-api` adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+To change the version, run:
+
+ poetry version <specifier> # e.g. patch
+
+or edit the version string in `pyproject.toml`. In any case, update the following file
+to match the new version: `encapsia_api/__init__.py`.
+
+Note that we are yet in `<1.0.0` land and thus version changes are not too strict and
+backward-incompatible changes may still occur before 1.0.0.
+
+
+### Building
+
+Manually build by running:
+
+ poetry build
+
+
+### Updating Dependencies
+
+This is achieved with:
+
+ poetry update
+ poetry lock
+ poetry export -f requirements.txt > requirements.txt
+
+### How to Run Tests
+
+Run:
+
+ poetry run pytest
+
+
+### Continuous Integration
+
+This project uses Github Actions to for linting, checking, and running the tests on
+commit to or pull requests targeting the main branch.
+
+
+%package help
+Summary: Development documents and examples for encapsia-api
+Provides: python3-encapsia-api-doc
+%description help
+# Encapsia API Library
+
+![Workflows](https://github.com/encapsia/encapsia-api/actions/workflows/main.yml/badge.svg)
+![PyPI](https://img.shields.io/pypi/v/encapsia-api?style=flat)
+[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
+![PyPI - Python Version](https://img.shields.io/pypi/pyversions/encapsia-api)
+
+[![Known Vulnerabilities](https://snyk.io/test/github/encapsia/encapsia-api/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/encapsia/encapsia-api?targetFile=requirements.txt)
+
+
+REST API for working with [Encapsia](https://www.encapsia.com).
+
+## Installation
+
+ pip install encapsia-api
+
+
+## Contributing
+
+`encapsia-api` is a python package managed with [`poetry`](https://python-poetry.org/).
+You will need python 3.8 or newer. To get started, after checking out this repository,
+run:
+
+ poetry install
+
+
+### Code Style
+
+Code in this project should be auto-formatted using `black` and adhere to isort-like
+imports, and should pass linting and checks. You can run the following commands
+manually, or integrate the tooling in your dev environment, but see also the next
+section.
+
+ poetry run black .
+ poetry run ruff check .
+ poetry run mypy .
+
+Ruff can fix some of the issues it finds. For example, it can fix the style of importing
+modules, but it can do much more. This can be done with running:
+
+ poetry run ruff check --fix .
+
+However, please make sure you check the fixes it performs!
+
+
+### Revision Control
+
+The release branch for this project is `master` and feature branches should be merged
+into it via pull requests.
+
+This repository uses [`pre-commit`](https://pre-commit.com/) to run various checks with
+git pre-commit hooks. To get started, run:
+
+ pre-commit install
+
+After this, configured checks are run before you commit changes. You can also run them
+explicitly for all files:
+
+ pre-commit run -a
+
+
+### Versioning
+
+`encapsia-api` adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+To change the version, run:
+
+ poetry version <specifier> # e.g. patch
+
+or edit the version string in `pyproject.toml`. In any case, update the following file
+to match the new version: `encapsia_api/__init__.py`.
+
+Note that we are yet in `<1.0.0` land and thus version changes are not too strict and
+backward-incompatible changes may still occur before 1.0.0.
+
+
+### Building
+
+Manually build by running:
+
+ poetry build
+
+
+### Updating Dependencies
+
+This is achieved with:
+
+ poetry update
+ poetry lock
+ poetry export -f requirements.txt > requirements.txt
+
+### How to Run Tests
+
+Run:
+
+ poetry run pytest
+
+
+### Continuous Integration
+
+This project uses Github Actions to for linting, checking, and running the tests on
+commit to or pull requests targeting the main branch.
+
+
+%prep
+%autosetup -n encapsia-api-0.4.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-encapsia-api -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6a4fcca
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7d1293f8bc6c730ced1ba373c388c142 encapsia_api-0.4.0.tar.gz