-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
142 additions
and
17 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 |
---|---|---|
|
@@ -4,3 +4,5 @@ dist | |
*.egg-info | ||
build | ||
.settings | ||
*.tar.gz | ||
*.rpm |
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,7 +1,11 @@ | ||
include README.md | ||
include toport/* | ||
include doc/* | ||
include applications/*.desktop | ||
include test/*py | ||
include test/testdata/* | ||
include test/dogtail/*.py | ||
include tests/*py | ||
include tests/testdata/* | ||
include tests/dogtail/*.py | ||
include *.spec | ||
include tox.ini | ||
include Jenkinsfile | ||
include build.parameters | ||
global-exclude *.py[cod] |
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 +1 @@ | ||
["RELEASE": "34 35"] | ||
["RELEASE": "36"] |
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,66 @@ | ||
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_spec_file | ||
|
||
%define debug_package %{nil} | ||
|
||
%define _name ledgerhelpers | ||
|
||
%define mybuildnumber %{?build_number}%{?!build_number:1} | ||
|
||
Name: python-%{_name} | ||
Version: 0.3.8 | ||
Release: %{mybuildnumber}%{?dist} | ||
Summary: A collection of helper programs and a helper library for Ledger (ledger-cli) | ||
|
||
License: GPLv2+ | ||
URL: https://github.com/Rudd-O/%{_name} | ||
Source: %{url}/archive/v%{version}/%{_name}-%{version}.tar.gz | ||
|
||
BuildArch: noarch | ||
BuildRequires: python3 | ||
|
||
%global _description %{expand: | ||
This is a collection of small single-purpose programs to aid your accounting | ||
with [Ledger](https://github.com/ledger/ledger) (ledger-cli). Think of it | ||
as the batteries that were never included with Ledger.} | ||
|
||
%description %_description | ||
|
||
%package -n python3-%{_name} | ||
Summary: %{summary} | ||
|
||
%description -n python3-%{_name} %_description | ||
|
||
%prep | ||
%autosetup -p1 -n %{_name}-%{version} | ||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires -t | ||
|
||
|
||
%build | ||
%pyproject_wheel | ||
|
||
|
||
%install | ||
%pyproject_install | ||
|
||
%pyproject_save_files %{_name} | ||
|
||
|
||
%check | ||
%tox | ||
|
||
|
||
# Note that there is no %%files section for | ||
# the unversioned python module, python-pello. | ||
|
||
# For python3-pello, %%{pyproject_files} handles code files and %%license, | ||
# but executables and documentation must be listed in the spec file: | ||
|
||
%files -n python3-%{_name} -f %{pyproject_files} | ||
%doc README.md doc/* | ||
|
||
|
||
%changelog | ||
* Thu Jun 16 2022 Manuel Amador <[email protected]> 0.1.0-1 | ||
- First RPM packaging release |
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,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=42"] | ||
build-backend = "setuptools.build_meta" |
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,4 +1,61 @@ | ||
[bdist_rpm] | ||
release = 1%%{?dist} | ||
doc_files = README.md | ||
requires = gobject-introspection, gtk3, pygobject3, ledger3-python, python3-yahoo-finance | ||
[metadata] | ||
name = ledgerhelpers | ||
version = attr: ledgerhelpers.__version__ | ||
author = Manuel Amador (Rudd-O) | ||
author_email = [email protected] | ||
description = A collection of helper programs and a helper library for Ledger (ledger-cli) | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/Rudd-O/ledgerhelpers | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Environment :: X11 Applications :: GTK | ||
Intended Audience :: End Users/Desktop | ||
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) | ||
Operating System :: POSIX :: Linux | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Topic :: Office/Business :: Financial :: Accounting | ||
license = GPLv2+ | ||
|
||
[options] | ||
include_package_data = True | ||
install_requires = | ||
PyGObject | ||
ledger | ||
yahoo-finance | ||
package_dir = | ||
= src | ||
packages = find: | ||
scripts = | ||
bin/addtrans | ||
bin/cleartrans-cli | ||
bin/sellstock-cli | ||
bin/sorttrans-cli | ||
bin/updateprices | ||
bin/withdraw-cli | ||
|
||
[options.data_files] | ||
share/applications = | ||
applications/withdraw-cli.desktop | ||
applications/cleartrans-cli.desktop | ||
applications/sortttrans-cli.desktop | ||
applications/updateprices.desktop | ||
applications/sellstock-cli.desktop | ||
applications/addtrans.desktop | ||
share/doc/ledgerhelpers = | ||
doc/addrans.md | ||
doc/addtrans-account.png | ||
doc/addtrans-amount.png | ||
doc/addtrans-dropdown.png | ||
doc/addtrans-readyagain.png | ||
doc/addtrans-started-up.Programming | ||
share/man/man1 = | ||
man/addtrans.1 | ||
man/cleartrans-cli.1 | ||
man/sellstock-cli.1 | ||
man/sorttrans-cli.1 | ||
man/withdraw-cli.1 | ||
|
||
[options.packages.find] | ||
where = src |
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,15 +1,8 @@ | ||
# tox (https://tox.readthedocs.io/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
envlist = | ||
envlist = basepython | ||
|
||
[testenv] | ||
sitepackages = True | ||
deps = | ||
pytest | ||
ledger | ||
commands = | ||
pytest |