Skip to content

Commit 4b32558

Browse files
authored
Merge pull request #22 from lesamouraipourpre/pypi
Enable uploading of the driver to PyPI
2 parents 6e4e65a + 72a1278 commit 4b32558

File tree

3 files changed

+65
-15
lines changed

3 files changed

+65
-15
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Introduction
22
============
33

4-
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-displayio_ssd1306/badge/?version=latest
4+
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-displayio-ssd1306/badge/?version=latest
55
:target: https://circuitpython.readthedocs.io/projects/displayio_ssd1306/en/latest/
66
:alt: Documentation Status
77

@@ -15,26 +15,25 @@ Introduction
1515

1616
DisplayIO driver for SSD1306 monochrome displays. DisplayIO drivers enable terminal output
1717

18-
For the framebuf based driver see `Adafruit CircuitPython SSD1306 <https://github.com/adafruit/Adafruit_CircuitPython_SSD1306/>`_.
18+
For the framebuf based driver see
19+
`Adafruit CircuitPython SSD1306 <https://github.com/adafruit/Adafruit_CircuitPython_SSD1306/>`_.
1920

2021

2122
Dependencies
2223
=============
2324
This driver depends on:
2425

25-
* `Adafruit CircuitPython Version 5+ <https://github.com/adafruit/circuitpython>`_
26+
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
2627

2728
Please ensure all dependencies are available on the CircuitPython filesystem.
2829
This is easily achieved by downloading
2930
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3031

3132
Installing from PyPI
3233
=====================
33-
.. note:: This library is not available on PyPI yet. Install documentation is included
34-
as a standard element. Stay tuned for PyPI availability!
3534

3635
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
37-
PyPI <https://pypi.org/project/adafruit-circuitpython-displayio_ssd1306/>`_. To install for current user:
36+
PyPI <https://pypi.org/project/adafruit-circuitpython-displayio-ssd1306/>`_. To install for current user:
3837

3938
.. code-block:: shell
4039
@@ -86,4 +85,5 @@ before contributing to help this project stay welcoming.
8685
Documentation
8786
=============
8887

89-
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.
88+
For information on building library documentation, please check out `this guide
89+
<https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

setup.py

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
"""A setuptools based setup module.
6+
7+
See:
8+
https://packaging.python.org/en/latest/distributing.html
9+
https://github.com/pypa/sampleproject
10+
"""
11+
12+
from setuptools import setup, find_packages
13+
14+
# To use a consistent encoding
15+
from codecs import open
16+
from os import path
17+
18+
here = path.abspath(path.dirname(__file__))
19+
20+
# Get the long description from the README file
21+
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
22+
long_description = f.read()
23+
24+
setup(
25+
name="adafruit-circuitpython-displayio-ssd1306",
26+
use_scm_version=True,
27+
setup_requires=["setuptools_scm"],
28+
description="DisplayIO driver for SSD1306 monochrome displays",
29+
long_description=long_description,
30+
long_description_content_type="text/x-rst",
31+
# The project's main homepage.
32+
url="https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306",
33+
# Author details
34+
author="Adafruit Industries",
35+
author_email="[email protected]",
36+
install_requires=["Adafruit-Blinka"],
37+
# Choose your license
38+
license="MIT",
39+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
40+
classifiers=[
41+
"Development Status :: 3 - Alpha",
42+
"Intended Audience :: Developers",
43+
"Topic :: Software Development :: Libraries",
44+
"Topic :: System :: Hardware",
45+
"License :: OSI Approved :: MIT License",
46+
"Programming Language :: Python :: 3",
47+
"Programming Language :: Python :: 3.4",
48+
"Programming Language :: Python :: 3.5",
49+
],
50+
# What does your project relate to?
51+
keywords="adafruit blinka circuitpython micropython displayio_ssd1306 displayio ssd1306 "
52+
"oled",
53+
# You can just specify the packages manually here if your project is
54+
# simple. Or you can use find_packages().
55+
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
56+
# CHANGE `py_modules=['...']` TO `packages=['...']`
57+
py_modules=["adafruit_displayio_ssd1306"],
58+
)

setup.py.disabled

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)