This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
78 lines (67 loc) · 2.62 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#--------------------------------------------------------------------------------------------------
# Program Name: ShelfExtender
# Program Description: Programmatically fake a Mercurial repository.
#
# Filename: setup.py
# Purpose: Configuration for installation with setuptools.
#
# Copyright (C) 2016 Christopher Antila
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#--------------------------------------------------------------------------------------------------
'''
Configuration for installation with setuptools.
'''
from setuptools import setup, Command
import shelfex # for __version__
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
with open('README.rst', 'r') as file_pointer:
_LONG_DESCRIPTION = file_pointer.read()
setup(
name = 'ShelfExtender',
version = shelfex.__version__,
packages = ['shelfex'],
install_requires = ['mercurial-hug'],
tests_require = ['pytest>2.7,<3'],
cmdclass = {'test': PyTest},
# metadata for upload to PyPI
author = 'Christopher Antila',
author_email = 'christopher@antila.ca',
description = 'Programmatically fake a Mercurial repository.',
long_description = _LONG_DESCRIPTION,
license = 'GPLv3+',
keywords = 'vcs, version control, mercurial, shelving',
url = 'https://goldman.ncodamusic.org/diffusion/SHELF/',
classifiers =[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Version Control',
],
)