304949a
%global checkout 11049f9
3386852
3386852
Name:           python-typeshed
3386852
# There are no actual releases of typeshed so we are making one up
3386852
Version:        0.1
304949a
Release:	0.20160520%{?dist}
3386852
Summary:        Static type information for python modules
3386852
3386852
License:        ASL 2.0
3386852
URL:            https://github.com/python/typeshed
304949a
# git archive --prefix=typeshed-0.1-11049f9/ 11049f9 | gzip -c9 > typeshed-0.1-11049f9.tar.gz
3386852
Source0:        typeshed-%{version}-%{checkout}.tar.gz
3386852
3386852
BuildArch:      noarch
3386852
3386852
%description
3386852
Typeshed models function types for the Python standard library
3386852
and Python builtins, as well as third party packages.
3386852
3386852
This data can e.g. be used for static analysis, type checking or type inference.
3386852
3386852
This package stores the typedata in /usr/share/typeshed
3386852
3386852
%prep
3386852
%autosetup -n typeshed-%{version}-%{checkout}
3386852
3386852
%build
3386852
# All stub files, nothing to build
3386852
3386852
%install
3386852
mkdir -p %{buildroot}/%{_datadir}/typeshed
c3d7dc4
for dir in stdlib third_party ; do
3386852
    cp -r $dir %{buildroot}/%{_datadir}/typeshed/$dir
3386852
done
3386852
3386852
%files
3386852
%doc README.md
3386852
%license LICENSE
3386852
%{_datadir}/typeshed
3386852
3386852
%changelog
304949a
* Fri May 20 2016 David Shea - 0.1-0.20160520git
304949a
- add AST.__init__ annotation
304949a
- Change datetime.datetime.astimezone tz argument type from timezone to tzinfo
304949a
- A couple new definitions, some more unicode for 2.7
304949a
- Fix html.escape signature
304949a
- Add types for gettext
304949a
- Fix type of getsockopt
304949a
- type `errors` in codecs.EncodedFile
304949a
- Add __version__ to requests
304949a
- Use __delete__, not __del__, in class property.
304949a
- getpass return str
304949a
- Make property a type
304949a
- Almost all re functions take a compiled pattern.
304949a
- Add note about not using basestring in tempfile
304949a
- Accept more unicode in 2.7 tempfile stubs
304949a
- Add some missing "type" attributes
304949a
- fix integration of io with mypy
304949a
- Add apply() and coerce() to 2.7 builtins.
304949a
- Add __future__.generator_stop for Python 3.5
304949a
- Fix subprocess stubs
304949a
- improve io
304949a
- Add os.replace()
304949a
- enable string arguments for start, end, and span methods of Match object
304949a
530670c
* Tue May 17 2016 David Shea - 0.1-0.20160505git
530670c
- Fix and greatly expand stubs for sqlalchemy.
530670c
- Expand the sqlalchemy stubs related to the Column model.
530670c
- Type Check webbrowser py3 module
530670c
- Add missing exec*, EX_* stubs for python 2 and fix py3 types.
530670c
- Add py2 webbrowser type checking
530670c
- Fix urlunparse stubs for 2.7 to correctly support a list/iterator argument
530670c
- Improvements to builtins min/max
530670c
- Add missing definition of compile() for 2.7.
530670c
- Add abc.abstractproperty (Python 3)
530670c
- Fix incorrect sys.exit() type.
530670c
- Additional type information for asyncio
530670c
- Fix type for reduce
530670c
- Remove invalid Python 3 syntax
530670c
- Fix asyncio.coroutine signature
530670c
- Stub for calendar module
530670c
- Stub for shelve
530670c
- Remove contents of problematic asyncio __all__s
530670c
- Fixed 2.7 stubs for traceback
530670c
- Specify attribute types of SyntaxError
530670c
- Define three argument type() overload (Python 3)
530670c
- reduce use of @overload in socket stubs
530670c
- Update stub for zlib
530670c
- Update stub for gc
530670c
- Add stub for multiprocessing.cpu_count()
530670c
- Stubs for pdb (only the most useful functions).
530670c
- Add missing import of List from typing.
530670c
- Fix traceback.pyi right.
530670c
- Fix typos: termina[ta]te()
530670c
- Make tests version-aware.
530670c
- Type check xml.etree module
530670c
- Improve Python 2.7 inspect stub
530670c
- sqlite3 stub for 2.7  and 3
530670c
- Fix Python 2.7 inspect stub (currentframe + frame type)
530670c
- Improve Python 3 inspect stub
530670c
- Add tornado.locks module
530670c
- Make all function annotations accessible from builtins complete
530670c
- Allow adding custom argparse.Actions in add_argument
530670c
- Bandaid for sqlalchemy.
530670c
- Stubs for setuptools' pkg_resources package
530670c
- Ignore Emacs backup files
530670c
- Complete getpass stubs
530670c
- Add stubs for configparser
530670c
- Complete pickle stubs
530670c
- Complete pickle and cPickle stubs for Python 2
530670c
- remove superfluous type comment in urllib.pyi
530670c
- Better stub for contextlib.contextmanager.
530670c
- add stdlib/2.7/heapq.pyi
530670c
- Use IO[bytes] instead of BytesIO in the pickle stub.
530670c
- Improve Python 3 fcntl stub
530670c
- Add version keyword arg to argparse.ArgumentParser.add_argument
530670c
- Fix signature for reduce in some files.
530670c
- Hopeful fix for fcntl stubs
530670c
- fileinput first version
530670c
- Update dbapi2.pyi to allow `execute` without binding params
530670c
- add `__dict__` attribute to class instance
530670c
- Add note about obtaining consent of package owner for third-party stubs.
530670c
- Implement itertools.chain.from_iterable().
530670c
- Added stubs for 2.7 Selenium WebElement
530670c
- Add missing return type for __init__()
530670c
- Add 2.7/optparse.pyi
530670c
- change ='' to :str=... in httplib
530670c
- Move warnings.pyi into 2and3/.
530670c
- Enable typing.DefaultDict as an alias for collections.defaultdict
530670c
- Precision surgery to take out sqlalchemy test failures
530670c
- Fix select stub for 2.7
530670c
- Various updates to stdlib modules
530670c
- py3: traceback.pyi: added format_stack
530670c
- Add a very basic bz2 stub
530670c
- Simple stub for tornado.testing
530670c
- Break cycle between typing and collections.
530670c
- Update dict(...) to accept keyword arguments
530670c
- Add Text to typing.pyi
530670c
- Support keyword arguments for dict() (Python 2)
530670c
- 2.7 stub updates
530670c
- Add stdlib/3/tokenize.pyi
530670c
- Change logging signatures to allow unicode
530670c
- Fix type error in 2.7 stubs
530670c
- Fixes to urllib2 stubs
530670c
- Make Queue generic in Python 2, similar to Python 3
530670c
- dateutil stubs
530670c
- Fix Py2 hashlib.new arg type
530670c
- Add stubs for typed_ast
530670c
- Add type.__call__.
530670c
- Add missing 3.3+ and 3.5+ math functions
530670c
- stdlib/2.7./codecs.pyi: added missing __enter__() and __exit__()
530670c
- Fixes to os.environ
530670c
- Use overloading rather than Union for MutableMapping.update
530670c
- Add abc.ABCMeta.register method
530670c
- json.dump{s,}' indent parameter also supports str
530670c
- pprint stream type
530670c
- Finish Python 3 hashlib stub
530670c
- Added bisect.pyi and ConfigParser.pyi
530670c
- Add Python 3 ast module; update Python 2.7 ast module; fixup typed_ast
530670c
- Fix 2.7 bisect stubs (lo/hi have defaults).
530670c
- Misc stub fixes
530670c
3760f86
* Mon Feb 22 2016 David Shea - 0.1-0.20160222git
3760f86
- Better approach to testing.
3760f86
- Fix and greatly expand stubs for sqlalchemy.
3760f86
- Expand the sqlalchemy stubs related to the Column model.
3760f86
- Type Check webbrowser py3 module
3760f86
- Add missing exec*, EX_* stubs for python 2 and fix py3 types.
3760f86
- Add py2 webbrowser type checking
3760f86
- Fix urlunparse stubs for 2.7 to correctly support a list/iterator argument
3760f86
- Improvements to builtins min/max
3760f86
- Try using "pip install -U ..." to install mypy
3760f86
- Add missing definition of compile() for 2.7.
3760f86
- Add abc.abstractproperty (Python 3)
3760f86
- Fix incorrect sys.exit() type.
3760f86
- Additional type information for asyncio
3760f86
1102726
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-0.20160129git
1102726
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1102726
2f15d39
* Thu Jan 28 2016 David Shea <dshea@redhat.com> - 0.1-0.20160128git
2f15d39
- Add timer class to threading.pyi
2f15d39
- Assorted stub updates
2f15d39
- Some fixes to threading
2f15d39
- Add Iterable base class to csv.DictReader.
2f15d39
- Replace some unicode argument defaults with ...
2f15d39
- Use NamedTuple for inspect.ArgSpec and .FullArgSpec.
2f15d39
- Make Future stub resemble reality better.
2f15d39
- Make asyncio more Generator friendly
2f15d39
- Fix default parameter syntax.
2f15d39
- Fix os.environ improperly classified as not mutable for python 2.
2f15d39
- Implement fromhex and maketrans method
2f15d39
- Add missing re module constants for 2.7.
2f15d39
- Add message attribute to class BaseException.
2f15d39
- Fix several python 2 library stub errors.
2f15d39
- Fix class file so it can be used as "with file(...) as f: f.read() # etc.
2f15d39
- Fix min()/max() overloading with key= parameter.
2f15d39
- Fix stubs for concurrent.futures
2f15d39
- Fix type for py2 traceback.format_exc and add to python 3.
2f15d39
- Add stubs for traceback.format_exception.
2f15d39
- Port stub for os.walk from python 3 to 2 and cleanup comment.
2f15d39
- Fix datetime.timedelta() argument types to be floats.
2f15d39
- Add a Travis CI configuration.
2f15d39
- Add stdlib/2.7 to Travis CI tests.
2f15d39
- Test 2and3, 3.3, 3.4.
2f15d39
- Add stubs for some of the most heavily used parts of six.moves
2f15d39
- Revert "Fix min()/max() overloading with key= parameter.
2f15d39
- Fix signature for 2.7/binascii.crc32().
2f15d39
- Fix constructor signatures to 2.7/cPickle.{Pickler,Unpickler}.
2f15d39
- Copy frozenset stubs from 3/builtins.pyi into 2.7/__builtin__.pyi.
2f15d39
- Add 2.7 stubs for dict.fromkeys().
2f15d39
- Fix ast.parse(). The 2nd and 3rd arg are optional.
2f15d39
- Expand stubs for simplejson, unittest, email
2f15d39
- Comment out references to modules without stubs introduced by accident.
2f15d39
- Add html module stubs.
2f15d39
- Add various annotations to complete more of six.moves.
2f15d39
c3d7dc4
* Fri Jan 15 2016 David Shea <dshea@redhat.com> - 0.1-0.20160115git
c3d7dc4
- 2.7 does not have lru_cache()
c3d7dc4
- Add keyword args to stdlib's json.pyi
c3d7dc4
- Add Generator to 2.7/typing.pyi.
c3d7dc4
- Make Reversible covariant.
c3d7dc4
- Fix Reversible.__reversed__() return type.
c3d7dc4
- Add flush keyword arg to print()
c3d7dc4
- Move contents of builtins/* to stdlib/*. This simplifies finding stubs.
c3d7dc4
- Remove outdated things from README.
c3d7dc4
- Make deque inherit from MutableMapping (with difficulty).
c3d7dc4
e5e918d
* Mon Jan 11 2016 David Shea <dshea@redhat.com> - 0.1-0.20160111git
e5e918d
- Fix types for timetuple and utctimetuple
e5e918d
- Fix Python 3 six.moves
e5e918d
- Have ast.pyi re-export symbols from _ast.pyi.
e5e918d
- Unify 2.7 and 3 stubs for functools.
e5e918d
- Enhance type information for lru_cache
e5e918d
e5e918d
* Thu Jan  7 2016 David Shea <dshea@redhat.com> - 0.1-0.20160107git.1
f5443ee
- typing: update 2 to match 3 on Sequence and Container
f5443ee
- builtins: Reversible is redundant when Sequence is already present
f5443ee
- Add __version__ to _ast.pyi.
f5443ee
- add Python 2 stubs for ast, tokenize
f5443ee
- Improve Python 2 stub for abc; _weakrefset stub.
f5443ee
- Update shlex.pyi
f5443ee
- Update random.pyi
f5443ee
- Add abstractproperty.__new__ so it can be used.
f5443ee
- Add object.__new__ so it can be called.
f5443ee
- Update 2.7 built-in set to be the same as PY3 set.
f5443ee
- Swap max() and min() overloads so max(x, y) and min(x, y) work as expected.
f5443ee
- Improve 2.7 stub for tempfile.
f5443ee
- Simplify SystemRandom now it subclasses Random, for 2.7 and 3.
f5443ee
- Add object.__setattr__ for 2.7.
f5443ee
- Simplify PY3 len() spec, no Union with tuple needed.
f5443ee
- Some updates now typing.Container is defined.
f5443ee
- Add cStringIO, cPickle to six.moves. Add six.moves for PY3.
f5443ee
e1b783e
* Fri Dec 18 2015 David Shea <dshea@redhat.com> - 0.1-0.20151217git.1
e1b783e
- Rebuild with the correct prefix in the source archive
e1b783e
dad1a31
* Fri Dec 18 2015 David Shea <dshea@redhat.com> - 0.1-0.20151217git
dad1a31
- Share operator stubs in 2and3
dad1a31
- Make attrgetter, itemgetter and methodcaller in operator usable
dad1a31
3386852
* Tue Dec 15 2015 David Shea <dshea@redhat.com> - 0.1-0.20151205git
3386852
- Initial package