-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from matiasb/updated-setup
Modernized setup.py.
- Loading branch information
Showing
1 changed file
with
41 additions
and
11 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,6 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Copyright (C) 2012 Matias Bordese | ||
# Copyright (C) 2012-2019 Matias Bordese | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
|
@@ -15,20 +15,50 @@ | |
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
from setuptools import setup, find_packages | ||
import codecs | ||
import os | ||
|
||
from setuptools import find_packages, setup | ||
|
||
version = __import__('unrar').__version__ | ||
|
||
# metadata | ||
NAME = 'unrar' | ||
DESCRIPTION = 'Wrapper for UnRAR library, ctypes-based.' | ||
KEYWORDS = ['unrar', 'ctypes', 'rar'] | ||
URL = 'http://github.com/matiasb/python-unrar' | ||
EMAIL = '[email protected]' | ||
AUTHOR = 'Matias Bordese' | ||
LICENSE = 'GPL-3' | ||
|
||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
# use README as the long-description | ||
with codecs.open(os.path.join(HERE, 'README.md'), "rb", "utf-8") as f: | ||
long_description = f.read() | ||
|
||
version = __import__('unrar').__version__ | ||
|
||
setup( | ||
name='unrar', | ||
name=NAME, | ||
version=version, | ||
description="Wrapper for UnRAR library, ctypes-based.", | ||
keywords='unrar ctypes', | ||
author='Matias Bordese', | ||
author_email='[email protected]', | ||
url='http://github.com/matiasb/python-unrar', | ||
license='GPL-3', | ||
packages=['unrar'], | ||
description=DESCRIPTION, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
keywords=KEYWORDS, | ||
author=AUTHOR, | ||
author_email=EMAIL, | ||
url=URL, | ||
packages=find_packages(exclude=('dependencies',)), | ||
license=LICENSE, | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'Development Status :: 4 - Beta', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.2', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
], | ||
) |