forked from devexp-db/distgen
-
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.
Fixes: devexp-db#33
- Loading branch information
Showing
10 changed files
with
157 additions
and
110 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.py[oc] | ||
*.egg-info | ||
build | ||
dist | ||
man | ||
MANIFEST | ||
docs/_build |
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 @@ | ||
[submodule "build_manpages"] | ||
path = build_manpages | ||
url = https://github.com/praiskup/build_manpages |
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,5 @@ | ||
Main contributors (alphabetical) | ||
-------------------------------- | ||
Pavel Raiskup <[email protected]> (original author) | ||
Slávek Kabrda <[email protected]> (current maintainer) | ||
Tomáš Tomeček <[email protected]> |
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
Submodule build_manpages
added at
5c16e8
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
Name: distgen | ||
Summary: Templating system/generator for distributions | ||
Version: 0.17%{?postrel:.%{postrel}%{posttag}} | ||
Release: 1%{?dist} | ||
Release: 2%{?dist} | ||
Group: Applications/Communications | ||
License: GPLv2+ | ||
URL: https://github.com/devexp-db/distgen | ||
|
@@ -49,14 +49,19 @@ make PYTHON=%{pybin} check | |
|
||
%files | ||
%license LICENSE | ||
%doc AUTHORS | ||
%doc docs/ | ||
%{_bindir}/dg | ||
%{pylib}/distgen | ||
%{pylib}/%{name}-*.egg-info | ||
%{_datadir}/%{name} | ||
%{_mandir}/man1/* | ||
|
||
|
||
%changelog | ||
* Tue Sep 26 2017 Pavel Raiskup <[email protected]> - 0.17.dev1-2 | ||
- package manual page and AUTHORS file | ||
|
||
* Mon Sep 18 2017 Slavek Kabrda <[email protected]> - 0.17.dev1-1 | ||
- update to 0.17.dev1 | ||
|
||
|
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_manpages] | ||
manpages = | ||
man/dg.1:object=parser:pyfile=bin/dg |
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,13 +1,26 @@ | ||
import sys | ||
from setuptools import setup | ||
from distgen.version import dg_version | ||
from os import listdir, path | ||
from os import listdir, path, getcwd | ||
|
||
project = "distgen" | ||
datadir = "share" | ||
pkgdatadir = datadir + "/" + project | ||
tpldir = pkgdatadir + "/templates" | ||
distconfdir = pkgdatadir + "/distconf" | ||
|
||
from setuptools.command.build_py import build_py | ||
from setuptools.command.install import install | ||
try: | ||
sys.path = [path.join(getcwd(), 'build_manpages')] + sys.path | ||
from build_manpages.build_manpages \ | ||
import build_manpages, get_build_py_cmd, get_install_cmd | ||
except: | ||
print("=======================================") | ||
print("Use 'git submodule update --init' first") | ||
print("=======================================") | ||
raise | ||
|
||
def dynamic_data_files(): | ||
dynamic_list = [] | ||
for dcdir in ["distconf", "distconf/lib"]: | ||
|
@@ -26,7 +39,10 @@ def get_requirements(): | |
name='distgen', | ||
version=dg_version, | ||
description='Templating system/generator for distributions', | ||
author='[email protected]', | ||
author='Pavel Raiskup (see AUTHORS)', | ||
author_email='[email protected]', | ||
maintainer='Bohuslav Kabrda', | ||
maintainer_email='[email protected]', | ||
license='GPLv2+', | ||
url='https://github.com/devexp-db/distgen', | ||
platforms=['any'], | ||
|
@@ -44,4 +60,9 @@ def get_requirements(): | |
] + dynamic_data_files(), | ||
scripts=['bin/dg'], | ||
install_requires=get_requirements(), | ||
cmdclass={ | ||
'build_manpages': build_manpages, | ||
'build_py': get_build_py_cmd(build_py), | ||
'install': get_install_cmd(install), | ||
}, | ||
) |