-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert plugin to entrypoint style; next release to be 'sopel-weather'
The old package name on PyPI can be updated with a shim directing users to the new location for further updates.
- Loading branch information
Showing
15 changed files
with
55 additions
and
68 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
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 was deleted.
Oops, something went wrong.
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,39 @@ | ||
[metadata] | ||
name = sopel-weather | ||
version = 1.6.0 | ||
description = A working re-implementation of the weather plugin for Sopel | ||
long_description = file: README.rst, NEWS | ||
long_description_content_type = text/x-rst; charset=UTF-8 | ||
author = Rusty Bower | ||
author_email = [email protected] | ||
url = https://github.com/sopel-irc/sopel-weather | ||
license = MIT License | ||
classifiers = | ||
Intended Audience :: Developers | ||
Intended Audience :: System Administrators | ||
License :: OSI Approved :: MIT License | ||
Topic :: Communications :: Chat :: Internet Relay Chat | ||
|
||
[options] | ||
packages = find: | ||
zip_safe = false | ||
include_package_data = true | ||
test_suite = tests | ||
install_requires = | ||
sopel>=7.1 | ||
requests | ||
pytz | ||
tests_require = | ||
codeclimate-test-reporter | ||
coveralls | ||
flake8 | ||
mock | ||
pycodestyle | ||
pytest>=3.6 | ||
pytest-cov | ||
requests_mock | ||
sopel | ||
|
||
[options.entry_points] | ||
sopel.plugins = | ||
weather = sopel_weather |
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,44 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import print_function | ||
import os | ||
import sys | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
|
||
|
||
if __name__ == '__main__': | ||
print('Sopel does not correctly load modules installed with setup.py ' | ||
'directly. Please use "pip install .", or add {}/sopel_modules to ' | ||
'core.extra in your config.'.format( | ||
os.path.dirname(os.path.abspath(__file__))), | ||
'directly. Please use "pip install .".', | ||
file=sys.stderr) | ||
|
||
with open('README.rst') as readme_file: | ||
readme = readme_file.read() | ||
|
||
with open('NEWS') as history_file: | ||
history = history_file.read() | ||
|
||
with open('requirements.txt') as requirements_file: | ||
requirements = [req for req in requirements_file.readlines()] | ||
|
||
with open('tests/requirements.txt') as dev_requirements_file: | ||
dev_requirements = [req for req in dev_requirements_file.readlines()] | ||
|
||
|
||
setup( | ||
name='sopel_modules.weather', | ||
version='1.6.0', | ||
description='A working re-implementation of the weather module for Sopel', | ||
long_description=readme + '\n\n' + history, | ||
long_description_content_type='text/x-rst', | ||
author='Rusty Bower', | ||
author_email='[email protected]', | ||
url='http://github.com/rustybower/sopel-weather', | ||
packages=find_packages('.'), | ||
namespace_packages=['sopel_modules'], | ||
include_package_data=True, | ||
install_requires=requirements, | ||
tests_require=dev_requirements, | ||
test_suite='tests', | ||
license='MIT License', | ||
) | ||
setup() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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